<!--
 * @Description: 
 * @Author: lz
 * @Date: 2022-12-28 12:50:36
 * @LastEditTime: 2022-12-28 19:49:11
 * @LastEditors: lz
-->
<template>
  <table>
    <tr>
      <td class="_label">项目编号</td>
      <td class="_value" colspan="4">{{ detail.projectCode }}</td>
    </tr>
    <tr>
      <td class="_label">赋码时间</td>
      <td class="_value" colspan="4">{{ detail.applyDate }}</td>
    </tr>
    <tr>
      <td class="_label">项目名称</td>
      <td class="_value" colspan="4">{{ detail.projectName }}</td>
    </tr>
    <tr>
      <td class="_label">项目属性</td>
      <td class="_value" colspan="4">{{ detail.projectTypeName }}</td>
    </tr>
    <tr>
      <td class="_label">业主联系人</td>
      <td class="_value">{{ detail.handleLeader }}</td>
      <td class="_label">业主联系手机</td>
      <td class="_value">{{ detail.legalPhone }}</td>
    </tr>
    <tr>
      <td class="_label">业主联系电话</td>
      <td class="_value">{{ detail.handlePhone }}</td>
      <td class="_label">项目总投资（万元）</td>
      <td class="_value">{{ detail.totalAmount }}</td>
    </tr>
    <tr>
      <td class="_label">项目所在区域</td>
      <td class="_value" colspan="4">{{ detail.dscAdmRegion }}</td>
    </tr>
    <tr>
      <td class="_label">拟开工时间</td>
      <td class="_value">{{ $moment(detail.startYear).format("yyyy-MM") }}</td>
      <td class="_label">拟建成时间</td>
      <td class="_value">{{ $moment(detail.endYear).format("yyyy-MM") }}</td>
    </tr>
    <tr>
      <td class="_label">建设地点区划代码</td>
      <td class="_value">{{ detail.placeCode }}</td>
      <td class="_label">国标行业名称</td>
      <td class="_value">{{ detail.industryName }}</td>
    </tr>
    <tr>
      <td class="_label">建设地点详情</td>
      <td class="_value" colspan="4">{{ detail.placeCodeDetail }}</td>
    </tr>
    <tr>
      <td class="_label">建设规模及内容</td>
      <td class="_value" colspan="4">{{ detail.scaleContent }}</td>
    </tr>
    <tr>
      <td class="_label">总用地面积(公顷)</td>
      <td class="_value">{{ detail.totalLandArea }}</td>
      <td class="_label">总建筑面积(公顷)</td>
      <td class="_value">{{ detail.totalLandMetre }}</td>
    </tr>
    <tr>
      <td class="_label">项目单位名称</td>
      <td class="_value" colspan="4">{{ detail.enterpriseName }}</td>
    </tr>

    <tr>
      <td class="_label">证照类型</td>
      <td class="_value">{{ detail.certificatesName }}</td>
      <td class="_label">证照编号</td>
      <td class="_value">{{ detail.certificatesCode }}</td>
    </tr>
    <tr>
      <td class="_label">项目负责人</td>
      <td class="_value">{{ detail.projectLeader }}</td>
      <td class="_label">负责人电话</td>
      <td class="_value">{{ detail.projectPhone }}</td>
    </tr>
    <!-- <tr>
      <td class="_label">项目总投资(万元)</td>
      <td class="_value" colspan="4">{{ detail.totalAmount }}</td>
    </tr>
    <tr>
      <td class="_label">固定资产投资(万元)</td>
      <td class="_value" colspan="4">{{ detail.fixedAmount }}</td>
    </tr>
    <tr>
      <td class="_label">土建工程费(万元)</td>
      <td class="_value">{{ detail.civilCost }}</td>
      <td class="_label">设备购置费(万元)</td>
      <td class="_value">{{ detail.equipmentCost }}</td>
    </tr>
    <tr>
      <td class="_label">安装工程费(万元)</td>
      <td class="_value">{{ detail.installationCost }}</td>
      <td class="_label">工程建设其他费用(万元)</td>
      <td class="_value">{{ detail.otherCost }}</td>
    </tr>
    <tr>
      <td class="_label">预备费(万元)</td>
      <td class="_value">{{ detail.reserveCost }}</td>
      <td class="_label">建设期利息(万元)</td>
      <td class="_value">{{ detail.interestCost }}</td>
    </tr>
    <tr>
      <td class="_label">铺底流动资金(万元)</td>
      <td class="_value" colspan="4">{{ detail.workingCapital }}</td>
    </tr>
    <tr>
      <td class="_label">资金来源(万元)</td>
      <td class="_value" colspan="4">{{ detail.capitalSource }}</td>
    </tr>
    <tr>
      <td class="_label">自有资金(万元)</td>
      <td class="_value">{{ detail.ownFunds }}</td>
      <td class="_label">财政性资金(万元)</td>
      <td class="_value">{{ detail.financialFunds }}</td>
    </tr>
    <tr>
      <td class="_label">银行贷款(万元)</td>
      <td class="_value">{{ detail.bankLoans }}</td>
      <td class="_label">其他(万元)</td>
      <td class="_value">{{ detail.otherFunds }}</td>
    </tr>
    <tr>
      <td class="_label">总用地面积(亩)</td>
      <td class="_value">{{ detail.totalLandArea }}</td>
      <td class="_label">其中:新增建设用地(万元)</td>
      <td class="_value">{{ detail.newBuildArea }}</td>
    </tr>
    <tr>
      <td class="_label">总建筑面积(平方米)</td>
      <td class="_value">{{ detail.totalLandMetre }}</td>
      <td class="_label">其中:地上建筑面积(平方米)</td>
      <td class="_value">{{ detail.newBuildMetre }}</td>
    </tr>
    <tr>
      <td class="_label">土地获取方式</td>
      <td class="_value" colspan="4">{{ detail.landMethod }}</td>
    </tr>
    <tr>
      <td class="_label">土地是否带设计方案</td>
      <td class="_value">{{ detail.isFesign ? "是" : "否" }}</td>
      <td class="_label">是否完成区域评估</td>
      <td class="_value">{{ detail.isRval ? "是" : "否" }}</td>
    </tr>
    <tr>
      <td class="_label">测绘机构</td>
      <td class="_value" colspan="4">{{ detail.mappingOrganization }}</td>
    </tr>
    <tr>
      <td class="_label">招标人</td>
      <td class="_value" colspan="4">{{ detail.tenderee }}</td>
    </tr>
    <tr>
      <td class="_label">是否为浙商回归项目</td>
      <td class="_value">{{ detail.isReturn ? "是" : "否" }}</td>
      <td class="_label">是否为央企合作项目</td>
      <td class="_value">{{ detail.isCenter ? "是" : "否" }}</td>
    </tr>
    <tr>
      <td class="_label" style="width: 266px;line-height: 1.4;">项目选址是否位于国家级、省级经济开发区、园区、省级产业集聚区</td>
      <td class="_value" colspan="4">{{ detail.isLocal ? "是" : "否" }}</td>
    </tr>
    <tr>
      <td colspan="5">项目申请单位</td>
    </tr>
    <tr>
      <td class="_label">项目(法人)单位</td>
      <td class="_value" colspan="4">{{ detail.projectUnit }}</td>
    </tr>
    <tr>
      <td class="_label">企业登记注册类型</td>
      <td class="_value">{{ detail.enterpriseType }}</td>
      <td class="_label">证照类型</td>
      <td class="_value">{{ detail.certificatesType }}</td>
    </tr>
    <tr>
      <td class="_label">项目法人证照号码</td>
      <td class="_value" colspan="4">{{ detail.certificatesVode }}</td>
    </tr>
    <tr>
      <td class="_label">单位地址</td>
      <td class="_value" colspan="4">{{ detail.unitAddress }}</td>
    </tr>
    <tr>
      <td class="_label">成立日期</td>
      <td class="_value" colspan="4">{{ detail.establishDate }}</td>
    </tr>
    <tr>
      <td class="_label">注册资金(万元)</td>
      <td class="_value">{{ detail.registerFunds }}</td>
      <td class="_label">币种</td>
      <td class="_value">{{ detail.currency }}</td>
    </tr>
    <tr>
      <td class="_label">接收批文邮寄地址</td>
      <td class="_value" colspan="4">{{ detail.mailingAddress }}</td>
    </tr>
    <tr>
      <td class="_label">主要经营范围</td>
      <td class="_value" colspan="4">{{ detail.scope }}</td>
    </tr>
    <tr>
      <td class="_label">法定代表人</td>
      <td class="_value">{{ detail.legalPerson }}</td>
      <td class="_label">法定代表人手机号码</td>
      <td class="_value">{{ detail.legalPhone }}</td>
    </tr>
    <tr>
      <td colspan="5">项目负责人</td>
    </tr>
    <tr>
      <td class="_label">姓名</td>
      <td class="_value">{{ detail.handleLeader }}</td>
      <td class="_label">职务</td>
      <td class="_value">{{ detail.post }}</td>
    </tr>
    <tr>
      <td class="_label">手机号码</td>
      <td class="_value">{{ detail.handlePhone }}</td>
      <td class="_label">电子邮箱</td>
      <td class="_value">{{ detail.projectEmail }}</td>
    </tr>
    <tr>
      <td colspan="5">经办联系人信息</td>
    </tr>
    <tr>
      <td class="_label">姓名</td>
      <td class="_value" colspan="4">{{ detail.handleLeader }}</td>
    </tr>
    <tr>
      <td class="_label">手机号码</td>
      <td class="_value">{{ detail.handlePhone }}</td>
      <td class="_label">电子邮箱</td>
      <td class="_value">{{ detail.handleEmail }}</td>
    </tr>
    <tr>
      <td colspan="5">项目附件</td>
    </tr>
    <tr>
      <td colspan="5"></td>
    </tr>
    <tr>
      <td colspan="5">项目单位情况说明</td>
    </tr>
    <tr>
      <td>{{ detail.description || "暂无情况说明信息" }}</td>
    </tr> -->
  </table>
</template>

<script>
import { getProjectById } from "@/api/homeApi";
export default {
  props: {
    detailId: {
      type: String,
      require: true
    }
  },
  data() {
    return {
      detail: {}
    };
  },
  created() {
    this.getDetail();
  },
  methods: {
    getDetail() {
      let type = [
        {
          label: "审批",
          lableId: "A00001"
        },
        {
          label: "核准",
          lableId: "A00002"
        },
        {
          label: "备案",
          lableId: "A00003"
        }
      ];
      let certificates = {
        A05202: "组织机构代码",
        A05300: "统一社会信用代码",
        A05201: "营业执照公司注册号",
        A05900: "个人"
      };
      getProjectById({ id: this.detailId }).then(res => {
        this.detail = res.data;
        type.forEach(n => {
          if (n.lableId === this.detail.projectType) {
            this.detail.projectTypeName = n.label;
          }
        });
        this.detail.certificatesName = certificates[this.detail.certificatesType]
      });
    }
  }
};
</script>

<style lang="scss" scoped>
table {
  width: 100%;
  border-collapse: collapse;
  td {
    font-size: 14px;
    padding: 15px;
    font-weight: 600;
  }
  ._label {
    width: 20%;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    background-color: #f6f6f6;
  }
  ._value {
    font-weight: normal;
    text-align: left;
  }
}
table,
th,
td {
  border: 1px solid #bed0d3;
}
</style>
